package com.shenyong.ladmin.mapper;

import com.shenyong.ladmin.entity.Article;
import com.shenyong.ladmin.result.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Create By:qiang
 * Date: 2019/11/28 16:50
 * 文件说明: ArticleMapper
 */
@Mapper
public interface ArticleMapper {
    //分页条件查询
    List<Article> listArticle(Page page);
    //条件查询文章条数
    int getArticleCount(Page page);
    //删除文章
    int deleteArricle(int article_id);
    //访问文章
    List<Article> selectArticle(Article article);
    //找到top5
    List<Article> selectArticleTop5();

    //相关推荐
    List<Article> AllArticle(Article article);
}
